package com.gardeneaters.game_v0.rules;

import com.gardeneaters.game_v0.autoplay.Autoplay;
import com.gardeneaters.game_v0.playingfield.Hexagon;

class Level {

	Autoplay autoplay;
	
	protected Level(Hexagon[][] hexagons){
		int [] teams = {2,3};
		autoplay = new Autoplay(hexagons, teams);
		
		//activateHex(hexagons[10][10], 1);
//		for(int i=10; i<16; i++)
//		{
//			for(int j=6; j<12; j++)
//			{
//				activateHex(hexagons[i][j], 2);
//			}
//		}
		activateHex(hexagons[3][12], 2);
		activateHex(hexagons[3][12], 2);
		activateHex(hexagons[9][14], 3);
		activateHex(hexagons[9][15], 3);
		
		activateHex(hexagons[9][4], 1);
		activateHex(hexagons[9][5], 1);
		activateHex(hexagons[10][5], 1);
	//	activateHex(hexagons[12][15], 3);
		
	}
	
	protected void activateHex(Hexagon hex, int team){
		hex.bringToLife(team);
		//hex.setFinalPow(1);
		//hex.setTeam(team,true);
	}

	public void play() {
		// TODO Auto-generated method stub
		autoplay.play();
	}
}
